package com.cloudkinto.service.finance.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cloudkinto.common.utils.StringsUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2020/6/11
 */
@Data
@ApiModel(discriminator = "充值列表返回数据")
public class RechargeRecordRes {
    @ApiModelProperty(value = "充值单号")
    private Long id;


    @ApiModelProperty(value = "充值方式")
    private String payType;

    @ApiModelProperty(value = "充值账户")
    private String rechargeAccount;


    @ApiModelProperty(value = "invoiceRecordId")
    private Long invoiceRecordId;

    @ApiModelProperty(value = "汇率")
    private Double jpyRate;

    /**
     * 充值金额
     */
    @ApiModelProperty(value = "充值金额(日元)")
    private Double amountJp;
    /**
     * 充值金额
     */
    @ApiModelProperty(value = "充值对应人民币")
    private Double amountRmb;
    /**
     * 充值前余额
     */
    @ApiModelProperty(value = "充值前余额")
    private Double beforeAmount;

    /**
     * 充值后余额
     */
    @ApiModelProperty(value = "充值后余额")
    private Double afterAmount;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String tips;

    /**
     * 审核状态  0 待审核  1充值成功 2充值取消
     */
    @ApiModelProperty(value = "审核状态")
    private String status;

    @ApiModelProperty(value = "0 未确认  1 已确认 ")
    private int doubleCheck;

    @ApiModelProperty(value = "0 不可开票  1 且 invoiceRecordId 为空 可开票 ")
    private int enableApply;

    @ApiModelProperty(value = "短信验证是否通过 0 未通过  1 通过")
    private int entryType;

    @ApiModelProperty("币种")
    private Long currency;

    /**
     * 充值凭证
     */
    @ApiModelProperty(value = "充值凭证-地址")
    private String certificateImagePath;
    @ApiModelProperty(value = "充值凭证-名称")
    private String certificateImage;

    @ApiModelProperty(value = "付款账户")
    private String payAccount;
    @ApiModelProperty(value = "付款日期")
    private String payDate;

    /**
     * 公司标识
     */
    private Long companyId;
    private String companyCode;

    /**
     * 充值时间
     */
    @ApiModelProperty(value = "充值时间")
    private Date createTime;

    @ApiModelProperty("入账时间")
    private Date entryTime;

    public String getPayType() {
        return StringsUtil.createI18Message(payType);
    }

    public String getRechargeAccount() {
        return StringsUtil.createI18Message(rechargeAccount);
    }

    public String getStatus() {
        return StringsUtil.createI18Message(status);
    }

}
